/*
 * @Author: KKKKKK
 * @Date: 2021-01-10 12:08:25
 * @LastEditors: KKKKKK
 * @LastEditTime: 2021-01-10 12:08:25
 */
import axios from './config'
import url from './url'
const baseUrl = process.env.VUE_APP_BASE_URL


/* 托管保证金明细类 */
// 新增托管保证金明细类
const escrowMarginInfoCreate = (params) => axios.post(baseUrl + url.escrowMarginInfo.create, params)

// 删除托管保证金明细类
const escrowMarginInfoDelete = (id) => axios.delete(baseUrl + url.escrowMarginInfo.delete + `/${id}`)

// 修改托管保证金明细类
const escrowMarginInfoUpdate = (params, id) => axios.post(baseUrl + url.escrowMarginInfo.update + `/${id}`, params)

// 获取某个托管保证金明细类
const escrowMarginInfoLoad = (id) => axios.get(baseUrl + url.escrowMarginInfo.load + `/${id}`)

// 获取托管保证金明细类列表
const escrowMarginInfoPage = (params) => axios.get(baseUrl + url.escrowMarginInfo.page, { params })

export default {
    escrowMarginInfoCreate,
    escrowMarginInfoDelete,
    escrowMarginInfoUpdate,
    escrowMarginInfoLoad,
    escrowMarginInfoPage
}